//
//  VCBaseViewController.h
//  VCShop
//
//  Created by VoyageCN on 16/8/21.
//  Copyright © 2016年 VoyageCN. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^requestSuccessBlock)(id responseObject);
typedef void(^requestErrorBlock)(NSError *error);

@interface VCBaseViewController : UIViewController

//post请求
- (void)POSTRequestWithURL:(NSString *)url
                 param:(NSDictionary *)param
             isSuccess:(requestSuccessBlock)returnSuccess
               isError:(requestErrorBlock)returnError;
//get请求
- (void)GETRequestWithURL:(NSString *)url
                param:(NSDictionary *)param
            isSuccess:(requestSuccessBlock)returnSuccess
              isError:(requestErrorBlock)returnError;
//提示文字
- (void)showTostInView:(NSString *)tost;

@end
